package com.wu.pojo.reqeust.sys;

import com.wu.pojo.reqeust.BaseRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class EditPasswordRequest extends BaseRequest {

    @ApiModelProperty(value = "原密码密码")
    @NotBlank(message = "原密码为空")
    @Pattern(regexp = "[0-9A-Za-z]{6,16}$", message = "原密码为6至16位数字或字母")
    private String formerPassword;

    @ApiModelProperty(value = "新密码")
    @NotBlank(message = "新密码为空")
    @Pattern(regexp = "[0-9A-Za-z]{6,16}$", message = "新密码为6至16位数字或字母")
    private String password;

}
